package cn.com.dycc.party_org.organize.param;

import java.io.Serializable;

import cn.com.dycc.common.page.TablePublicAttri;
/**
 * 增加党组织参数
 * @author linfa
 *
 */
public class OrganizeParam extends TablePublicAttri implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5294804068911908565L;
	
	private String dept_id;			//单位序号
	private String dept_name;		//党组织名称
	private String pid;				//上级党组织ID
	private String own_dept_id;		//归属单位ID
	private String dept_contacts;	//党组织联系人
	private String dept_tel;		//党组联系人电话
	private Integer order_no;		//排列顺序
	private String remark;			//备注
	
	public OrganizeParam(){}

	

	public OrganizeParam(String dept_id, String dept_name, String pid, String own_dept_id, String dept_contacts,
			String dept_tel, Integer order_no, String remark) {
		super();
		this.dept_id = dept_id;
		this.dept_name = dept_name;
		this.pid = pid;
		this.own_dept_id = own_dept_id;
		this.dept_contacts = dept_contacts;
		this.dept_tel = dept_tel;
		this.order_no = order_no;
		this.remark = remark;
	}
	
	



	public String getDept_id() {
		return dept_id;
	}



	public void setDept_id(String dept_id) {
		this.dept_id = dept_id;
	}



	public String getDept_name() {
		return dept_name;
	}



	public void setDept_name(String dept_name) {
		this.dept_name = dept_name;
	}



	public String getPid() {
		return pid;
	}



	public void setPid(String pid) {
		this.pid = pid;
	}



	public String getOwn_dept_id() {
		return own_dept_id;
	}



	public void setOwn_dept_id(String own_dept_id) {
		this.own_dept_id = own_dept_id;
	}



	public String getDept_contacts() {
		return dept_contacts;
	}



	public void setDept_contacts(String dept_contacts) {
		this.dept_contacts = dept_contacts;
	}



	public String getDept_tel() {
		return dept_tel;
	}



	public void setDept_tel(String dept_tel) {
		this.dept_tel = dept_tel;
	}



	public Integer getOrder_no() {
		return order_no;
	}



	public void setOrder_no(Integer order_no) {
		this.order_no = order_no;
	}



	public String getRemark() {
		return remark;
	}



	public void setRemark(String remark) {
		this.remark = remark;
	}



	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((dept_id == null) ? 0 : dept_id.hashCode());
		result = prime * result + ((own_dept_id == null) ? 0 : own_dept_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrganizeParam other = (OrganizeParam) obj;
		if (dept_id == null) {
			if (other.dept_id != null)
				return false;
		} else if (!dept_id.equals(other.dept_id))
			return false;
		if (own_dept_id == null) {
			if (other.own_dept_id != null)
				return false;
		} else if (!own_dept_id.equals(other.own_dept_id))
			return false;
		return true;
	}
	
	
	
	

}
